package com.hjc.springbootstudyweb.controller;

import com.hjc.springbootstudyweb.entity.IndentModel;
import com.hjc.springbootstudyweb.service.ServiceImpl.IndentServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/1
 * Time: 21:54
 * To change this template use File | Settings | File Templates.
 */
@RestController
@RequestMapping("/indent")
public class IndentController {
    @Autowired
    private IndentServiceImpl indentService;

    @GetMapping("getIndent")
    public List<IndentModel> getIndet(){
        return indentService.queryIndent();
    }
}
